package backend.component;

import backend.Register.OperandType;
import backend.Register.RISCVoperand;

public class RISCVimm extends RISCVoperand {
    private int imm;
    //标记该立即数能不能用 12位表示
    private boolean is;

    public RISCVimm(int imm, boolean is) {
        this.imm = imm;
        this.is = is;
    }

    public int getImm() {
        return imm;
    }

    public boolean getIs() {
        return is;
    }

    public void setImm(int imm) {
        this.imm = imm;
    }

    public void setIs(boolean is) {
        this.is = is;
    }

    public String toString(){
        return String.valueOf(imm);
    }
}
